package com.tbit.main.service.impl;

import com.tbit.main.dao.core.CountryDao;
import com.tbit.main.pojo.Country;
import com.tbit.main.service.CountryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Description: 国家表
 */
@Service("countryService")
public class CountryServiceImpl implements CountryService {
    @Autowired
    private CountryDao countryDao;

    @Override
    public List<Country> query() {
        return countryDao.query();
    }

    @Override
    public Country getById(String countryCode) {
        return countryDao.getById(countryCode);
    }
}
